package com.cn.designpatterns.ex.concrete.chain;

import java.util.Objects;

/**
 * @author: zhangyi
 * @date: 2019/1/10 16:15
 * @description:
 */
public class Concrete2Handler extends Handler {

    @Override
    public void requestHandler(int request) {
        if(request >= 10 && request <= 100){
            System.out.println(request + "between 10 and 100");
        }else if(!Objects.isNull(successful)){
            successful.requestHandler(request);
        }
    }
}
